JENKINS_HOME=/srv/jenkins-master
sed -i 's#https://updates.jenkins.io/update-center.json#https://mirrors.huaweicloud.com/jenkins/update-center.json#g' ${JENKINS_HOME}/hudson.model.UpdateCenter.xml
sed -i 's#https://updates.jenkins.io/download/plugins#https://mirrors.aliyun.com/jenkins/plugins#g' ${JENKINS_HOME}/updates/default.json
sed -i 's#https://www.google.com#https://www.baidu.com#g' ${JENKINS_HOME}/updates/default.json